/**
 * NodeDescriptorComparator.java
 * ************************** 
 * @date Apr 27, 2011
 * @author Michele Tamburini
 * 
 * **************************
 */
package gossipServices.basic.nodeDescriptors.comparators;

import gossipServices.basic.nodeDescriptors.NodeDescriptor;

import java.util.Comparator;

/**
 * Description: 
 * A comparator of two NodeDescriptor(s) is able to perform a 
 * comparison using one or more fields of the NodeDescriptor(s).
 * The comparator inheriting this interface has to implement the function
 * 			compareTo(NodeDescriptor o1, NodeDescriptor o2):int
 * where:
 *   o1: is the first item to be compared
 *   o2: is the second item to be compared
 * and return an integer value:
 *   -1: if o1 < o2
 *    0: if o1 == o2
 *    1: if o1 > o2
 *   
 */
public interface NodeDescriptorComparator 
		extends Comparator<NodeDescriptor> {

}
